home *** CD-ROM | disk | FTP | other *** search
/ Kit PC World De Ampliacion De Windows 95 / Kit PC World de ampliacion de Windows 95.iso / internet / sweeper / samples / olecon~1 / controls / autosa~1 / autosa~1.odl < prev    next >
Text File  |  1995-11-25  |  2KB  |  87 lines

  1. //=--------------------------------------------------------------------------=
  2. // AutoSample.ODL
  3. //=--------------------------------------------------------------------------=
  4. // Copyright  1995  Microsoft Corporation.  All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. //
  12. // ODL file for the automation object(s) in this inproc server
  13. //
  14. //
  15. #include "dispids.h"
  16.  
  17. // can't include oaidl.h, so this will have to do
  18. //
  19. #define DISPID_NEWENUM -4
  20.  
  21.  
  22. //=--------------------------------------------------------------------------=
  23. // the libid for this type libray
  24. //
  25. [
  26.     uuid(956fca20-271d-11cf-9d53-00aa003c9cb6),
  27.     helpstring("AutoSample Object Library"),
  28.     lcid(0x0000),
  29.     version(1.0)
  30. ]
  31. library AutoSampleObjects {
  32.  
  33.     // standard imports
  34.     //
  35.     importlib("STDOLE32.TLB");
  36.  
  37.     // primary dispatch interface for CRectangle object
  38.     //
  39.     [
  40.         uuid(96ad2c20-271d-11cf-9d53-00aa003c9cb6),
  41.     helpstring("Rectangle Object"),
  42.         hidden,
  43.     dual,
  44.     odl
  45.     ]
  46.     interface IRectangle : IDispatch {
  47.  
  48.         // properties
  49.     //
  50.         [propget]
  51.             HRESULT Bottom([out, retval] long *plBottom);
  52.         [propput]
  53.             HRESULT Bottom([in] long lBottom);
  54.  
  55.         [propget]
  56.             HRESULT Left([out, retval] long *plLeft);
  57.         [propput]
  58.             HRESULT Left([in] long lLeft);
  59.  
  60.         [propget]
  61.             HRESULT Right([out, retval] long *plRight);
  62.         [propput]
  63.             HRESULT Right([in] long lRight);
  64.  
  65.         [propget]
  66.             HRESULT Top([out, retval] long *plTop);
  67.         [propput]
  68.             HRESULT Top([in] long lTop);
  69.  
  70.         // methods
  71.     //
  72.     };
  73.  
  74.     // coclass for CRectangle objects
  75.     //
  76.     [
  77.         uuid(988ac5c0-271d-11cf-9d53-00aa003c9cb6),
  78.     helpstring("Rectangle Object")
  79.     ]
  80.     coclass Rectangle {
  81.         [default]         interface IRectangle;
  82.     };
  83. };
  84.  
  85.  
  86.  
  87.